package com.doit.day03

object _02_算子 {
  def main(args: Array[String]): Unit = {
    val list: List[Int] = List(1, 2, 3, 4, 5)
    list.foreach(println)
    val res: List[Int] = list.filter(_ % 2 == 0)
    println(res)

    val min: Int = list.min
    val max: Int = list.max
    val sum: Int = list.sum
    




  }

}
